home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Graphics / PerfectPaint / rexx / box / Coral.rx < prev    next >
Encoding:
Text File  |  2001-08-25  |  769 b   |  52 lines

  1. /* Box arexx test */
  2.  
  3.     options results
  4.   parse ARG Port x1 y1 x2 y2 b
  5.     ADDRESS value Port
  6.  
  7.     pp_GetDepth
  8.     D=result
  9.     IF D<24 then DO
  10.         pp_Warn 'This*script*is*only|for*24bits*Picture.'    
  11.         pp_PermitRefresh
  12.         Exit
  13.     END
  14.  
  15.     type=0
  16.     pp_DialogInit 150 60 "*Coral*" 1
  17.         pp_Cycle 0 50 8 70 16 "Size" 1 "1|2|3|4|5|6" type
  18.     pp_Dialog
  19.     rc=result
  20.     if rc=0 then
  21.         do
  22.             EXIT
  23.         end        
  24.  
  25.     pp_GetDialog 0
  26.     type=result
  27.  
  28.     pp_AvoidRefresh
  29.     pp_UpdateUndoBox x1-1 y1-1 x2+1 y2+1
  30.  
  31.     pp_ComposeReqOff
  32.     pp_Compose 0 100 0
  33.     pp_EffectOn
  34.     pp_ProgressText 'Coral'
  35.  
  36.     pp_Straw 3 (type+2)*5
  37.     pp_Progress 1 4
  38.     pp_BoxF x1 y1 x2 y2
  39.     pp_Maximum 1
  40.     pp_Progress 2 4
  41.     pp_BoxF x1 y1 x2 y2
  42.     pp_Minimum 1
  43.     pp_Progress 3 4
  44.     pp_BoxF x1 y1 x2 y2
  45.  
  46.     pp_PermitRefresh
  47.     pp_EffectOff
  48.     pp_ComposeReqOn
  49.     pp_Progressclr
  50.  
  51.     Exit
  52.